import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
    easycom: {
        autoscan: true,
        custom: {
            '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
        },
    },
    pages: [],
    globalStyle: {
        backgroundColor: '@bgColor',
        backgroundColorBottom: '@bgColorBottom',
        backgroundColorTop: '@bgColorTop',
        backgroundTextStyle: '@bgTxtStyle',
        navigationBarBackgroundColor: '#ffffff',
        navigationBarTextStyle: '@navTxtStyle',
        navigationBarTitleText: '子弹工作',
        navigationStyle: 'custom',
        transparentTitle: 'always',
    },
    subPackages: [],
    tabBar: {
        color: '#333',
        selectedColor: '#FF7642',
        iconWidth: '56px',
        fontSize: '12px',
        customize: true,
        overlay: true,
        custom: true,
        list: [
            {
                pagePath: 'pages/index/index',
                text: '广场',
                name: '广场',
                iconPath: 'static/images/tabbar/home.png',
                selectedIconPath: 'static/images/tabbar/home-active.png',
            },
            {
                pagePath: 'pages/clock/clock',
                text: '打卡',
                name: '打卡',
                iconPath: 'static/images/tabbar/clock.png',
                selectedIconPath: 'static/images/tabbar/clock.png',
            },
            {
                pagePath: 'pages/mine/mine',
                text: '我的',
                name: '我的',
                iconPath: 'static/images/tabbar/my.png',
                selectedIconPath: 'static/images/tabbar/my-active.png',
            },
        ],
    },
    // tabBar: {
    //   backgroundColor: "@tabBgColor",
    //   borderStyle: "@tabBorderStyle",
    //   color: "@tabFontColor",
    //   selectedColor: "@tabSelectedColor",
    // },
})
